home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
util
/
rexx
/
PGPwithYAM.lha
/
PGPwithYAM
/
DecryptMail.rexx
next >
Wrap
OS/2 REXX Batch file
|
1997-10-08
|
1KB
|
52 lines
/* Decrypt a mail with Phil's PGP for YAM
* $VER: DecryptMail.rexx 1.0 (08-Oct-97) by Roberto Ragusa
*
* ATTENTION:
* This file overwrites the encrypted mail with the decrypted one.
* So anybody who has access to your computer can read it!
* If you don't want to have the decrypted version of a mail on
* your harddisk, use ReadMail.rexx
*
* This script has the advantage that it works perfectly with MIME/UUENC files
* that were appended to the mail before it was encrypted (so the files are
* encrypted too).
*/
OPTIONS RESULTS
userid = 'Michael Praschl' /* To encrypt mails with your personal key, too, */
/* so you can read sent messages */
pgppath = 'PGP:bin/pgp'
pgpcommand = ''
CALL CLOSE 'STDOUT'
CALL CLOSE 'STDIN'
CALL OPEN 'STDIN','CON:0/14/1000/200/YAM-REXX/CLOSE'
CALL PRAGMA '*','STDIN'
CALL OPEN 'STDOUT','*'
IF ~SHOW('Ports','YAM') THEN DO
ADDRESS 'COMMAND'
'Run YAM:YAM NOCHECK HIDE'
'SYS:RexxC/WaitForPort YAM'
END
IF SHOW('Ports','YAM') THEN DO
ADDRESS 'YAM'
GETMAILINFO FILE
mailfile = RESULT
ADDRESS 'COMMAND'
'YAM:Rexx/splitmail' mailfile
if exists('ram:body') then
pgppath pgpcommand 'ram:body -o ram:body.plain'
if exists('ram:head') then
if exists('ram:body.plain') then
'join ram:head ram:body.plain to' mailfile
'delete >NIL: ram:head ram:body ram:body.plain ram:keys ram:selected'
END